package com.demo.inheritance;

public class LivingBeings {
	
	private int legs;
	
	
	public LivingBeings(int legs){
		this.legs = legs;
	}
	
	public void move() {
		System.out.println("I can walk");
	}
	
	public void speak(){
		System.out.println("I am speaking");
	}
	
	public void fly(){
		System.out.println(" I can not fly");
	}

}
